from django.contrib import admin
from django.utils.translation import ugettext_lazy as _
from cemberus.accounting.models import UserProfile


class ProfileAdmin(admin.ModelAdmin):
    fieldsets = [
        (None, {'fields': ['user', 'created', 'modified',]}),
        (_(u'Profilinformationen'), {'fields': ['city', 'age', 'job', 'about', 'homepage', 'avatar',]}),
        (_(u'Social Communities'), {'fields': ['icq', 'skype', 'jabber', 'facebook', 'twitter', 'xing', 'lastfm',]}),
        (_(u'HTML-Meta Angaben'), {'fields': ['html_title', 'html_description', 'html_keywords',]}),
    ]
    list_display = ('user', 'city', 'age', 'job', 'homepage',)
    list_filter = ('city', 'age',)
    search_fields = ['user', 'city', 'job',]
    
admin.site.register(UserProfile, ProfileAdmin)

